import http from '@/utils/http'

// 登录测试接口
export const postLoginWxMinSimple = (phoneNumber) => {
    return http({
        url: '/login/wxMin/simple',
        method: 'post',
        data: { phoneNumber }
    })
}

/**
 * 执行登录，获取token
 * @param {Object} data 包含 code，ic，encryptedData
 */
export const postLoginWxmin = (data) => {
    return http({ url: "/login/wxMin", method: "post", data });
};



/**
 * 获取会员信息
 */
export const getMemberProfile = () => {
    return http({ url: "/member/profile" });
};



// 个人信息-修改
export const putMembeProfile = (data) => {
    return http({ url: "/member/profile",method:'put',data });
}